<template>
  <div>
    <form
      name="auto_submit_form"
      method="post"
      action="https://apipcs3.dccnet.com.cn/ui/eaccount/manage/V1?encrypt_type=AES&timestamp=2019-01-28+09%3A16%3A52&format=json&app_id=10000000000000011062&msg_id=8546e630625e4f3a980c27f05a0965dd&sign_type=RSA&charset=UTF-8&sign=fBD3Q5Inz%2Fw%2B3v25Hk0amXvRrWJHCSThiU%2Bj%2F%2BFAHth%2FFOGzyn2GYFDoPw9dvgBxFJ53bwzfRUiGuiu9fMd%2B9eyyF6sOuvXK1XcQSuXd66hJk85AYEuKYD%2FXi0eJtepY4r7XY0SuLpEAts0H0iZWDxqh0ZaJmvO2vz9D98aZQYg%3D"
    >
      <!-- <input type="hidden" name="interfaceName" value="ICBC_IIAccount_Mange" /> -->
      <input
        type="hidden"
        name="biz_content"
        value="NH6tsf+AhtCO0qta3Cfpug75wNLBeMwS3+xkGVH4AZbOw53KWvjo5hAy66WQRsrruFZ+rmCEtL7pGIzbLzHe43+VR5avsbeFNbVdiy81JR8tF78UAV2+8RwHVf9lWF3eEWGwjL/MJX0R9akYogZ5MPKlagNlbooqvN1xl/23urkoipTDySzmoP/B3RadlXIcARw3NcvwEy5VjOuxTLJB3wH4yS+QoQ/yKxfxkje4r67UmcBu5rHbbgUslD0u63MbX82fyMITQR90B7eN0CK2XDxMozUhG9yZiL7Fa7LLLKz4RzeXPeb0MPNC/10VVo/DjnkCZ3Tj6e9DmfbkjaxqIFskAvGoQGuZeOWSbHThpbY="
      />
      <input type="submit" value="立刻提交" />
    </form>
    <Button @click="toIcbc">工行</Button>
  </div>
</template>

<script lang="ts">
import { Vue, Component } from 'vue-property-decorator'
import { icbcEaccount } from '../../api/api_icbc'

@Component
export default class Icbc extends Vue {
  private toIcbc() {
    const p = {
      userId: '6222100008031616',
      orderTimeStamp: '1538121517482',
      corpAppid: '10000000000000010533',
      bacAddr: 'http://localhost:3008'
    }

    icbcEaccount({ biz_content: JSON.stringify(p) }).then(res => {
      console.log(res, '123')
    })
  }
}
</script>

<style></style>
